Skip to content

[DLPack] Bump dlpack to v1.1 and follow the latest array API standard#75205

Merged
SigureMo merged 37 commits intoPaddlePaddle:developfrom
cattidea:dlpack/bump-to-dlpack-v11
Sep 17, 2025
Merged

[DLPack] Bump dlpack to v1.1 and follow the latest array API standard#75205
SigureMo merged 37 commits intoPaddlePaddle:developfrom
cattidea:dlpack/bump-to-dlpack-v11

Conversation

@SigureMo
Copy link
Copy Markdown
Member

@SigureMo SigureMo commented Sep 10, 2025

PR Category

Execute Infrastructure

PR Types

New features

Description

Bump dlpack to v1.1 to support the fp8/fp6/fp4 datatype to support tvm-ffi integrated flashinfer. Add versioned strategy support.

Following the latest array API standard, add max_version, dl_device and copy parameters to Tensor.__dlpack__1, add device and copy parameters to paddle.from_dlpack2.

Cleanup legacy DLPackTensor related code.

Docs update

Footnotes

  1. https://data-apis.org/array-api/latest/API_specification/generated/array_api.array.__dlpack__.html#dlpack

  2. https://data-apis.org/array-api/latest/API_specification/generated/array_api.from_dlpack.html#from-dlpack

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Sep 10, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@SigureMo SigureMo marked this pull request as ready for review September 11, 2025 10:53
Comment thread paddle/fluid/framework/dlpack_tensor.cc Outdated
Comment thread test/legacy_test/test_dlpack.py
Comment thread test/legacy_test/test_dlpack.py Outdated
Comment thread test/legacy_test/test_dlpack.py
Comment thread test/legacy_test/test_dlpack.py
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@52826dd). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #75205   +/-   ##
==========================================
  Coverage           ?        0           
==========================================
  Files              ?        0           
  Lines              ?        0           
  Branches           ?        0           
==========================================
  Hits               ?        0           
  Misses             ?        0           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SigureMo SigureMo changed the title [DLPack] Bump dlpack to v1.1 [DLPack] Bump dlpack to v1.1 and follow the latest array standard Sep 12, 2025
@SigureMo SigureMo changed the title [DLPack] Bump dlpack to v1.1 and follow the latest array standard [DLPack] Bump dlpack to v1.1 and follow the latest array API standard Sep 12, 2025
Copy link
Copy Markdown
Contributor

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SigureMo SigureMo merged commit 46a53d9 into PaddlePaddle:develop Sep 17, 2025
134 of 145 checks passed
@SigureMo SigureMo deleted the dlpack/bump-to-dlpack-v11 branch September 17, 2025 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants